home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mlib38d.zoo / diffh < prev    next >
Encoding:
Text File  |  1993-10-20  |  12.3 KB  |  416 lines

  1. diff -cr /src/mntinc37/PatchLev.h ./PatchLev.h
  2. *** /src/mntinc37/PatchLev.h    Wed Oct 20 11:08:24 1993
  3. --- ./PatchLev.h    Tue Oct 12 17:24:42 1993
  4. ***************
  5. *** 3,6 ****
  6.    *    directory.
  7.    */
  8.    
  9. ! #define _PatchLevel "37"
  10. --- 3,6 ----
  11.    *    directory.
  12.    */
  13.    
  14. ! #define _PatchLevel "38"
  15. diff -cr /src/mntinc37/compiler.h ./compiler.h
  16. *** /src/mntinc37/compiler.h    Wed Oct 20 11:08:26 1993
  17. --- ./compiler.h    Mon Oct 18 22:05:36 1993
  18. ***************
  19. *** 84,89 ****
  20. --- 84,92 ----
  21.   #ifdef _SHORTINT
  22.   # define __MSHORT__
  23.   #endif
  24. + #ifdef _UNSIGNEDCHAR
  25. + # define __CHAR_UNSIGNED__
  26. + #endif
  27.   #endif
  28.   
  29.   #ifdef __C68__
  30. diff -cr /src/mntinc37/falcon.h ./falcon.h
  31. *** /src/mntinc37/falcon.h    Wed Oct 20 11:08:32 1993
  32. --- ./falcon.h    Sun Oct 17 09:33:00 1993
  33. ***************
  34. *** 10,15 ****
  35. --- 10,82 ----
  36.   #include <osbind.h>
  37.   #endif
  38.   
  39. + #ifdef __LATTICE__
  40. + #define __F_TRAP {register d2,a2; "4e4e";}
  41. + void _vfv(int);
  42. + char _bfv(int);
  43. + short _sfv(int);
  44. + long _lfv(int);
  45. + void _vfs(int, int);
  46. + short _sfs(int, int);
  47. + long _lfs(int, int);
  48. + void _vfss(int, int, int);
  49. + long _lfss(int, int, int);
  50. + void _vfll(int, long, long);
  51. + void _vflp(int, long, void *);
  52. + void _vfssr(int, int, int, long *);
  53. + void _vfssR(int, int, int, const long *);
  54. + void _vfpls(int, void *, long, int);
  55. + short _sflsp(int, long, int, void *);
  56. + short _sfpls(int, void *, long, int);
  57. + long _lfspp(int, int, void *, void *);
  58. + short _sfppss(int, void *, void *, int, int);
  59. + void _vfllpp(int, long, long, void *, void *);
  60. + void _vfplll(int, void *, long, long, long);
  61. + void _vfplpl(int, void *, long, void *, long);
  62. + long _lfsssss(int, int, int, int, int, int);
  63. + void _vfppllll(int, void *, void *, long, long, long, long);
  64. + #pragma inline _vfv((short))    __F_TRAP
  65. + #pragma inline d0=_bfv((short))    __F_TRAP
  66. + #pragma inline d0=_sfv((short))    __F_TRAP
  67. + #pragma inline d0=_lfv((short))    __F_TRAP
  68. + #pragma inline _vfs((short),(short))    __F_TRAP
  69. + #pragma inline d0=_sfs((short),(short))    __F_TRAP
  70. + #pragma inline d0=_lfs((short),(short))    __F_TRAP
  71. + #pragma inline _vfss((short),(short),(short))    __F_TRAP
  72. + #pragma inline d0=_lfss((short),(short),(short))    __F_TRAP
  73. + #pragma inline _vfll((short),,)    __F_TRAP
  74. + #pragma inline _vflp((short),,)    __F_TRAP
  75. + #pragma inline _vfssr((short),(short),(short),)    __F_TRAP
  76. + #pragma inline _vfssR((short),(short),(short),)    __F_TRAP
  77. + #pragma inline _vfpls((short),,,(short))    __F_TRAP
  78. + #pragma inline d0=_sfpls((short),,,(short))    __F_TRAP
  79. + #pragma inline d0=_sflsp((short),,(short),)    __F_TRAP
  80. + #pragma inline d0=_lfspp((short),(short),,)    __F_TRAP
  81. + #pragma inline d0=_sfppss((short),,,(short),(short))    __F_TRAP
  82. + #pragma inline _vfllpp((short),,,,)    __F_TRAP
  83. + #pragma inline _vfplll((short),,,,)    __F_TRAP
  84. + #pragma inline _vfplpl((short),,,,)    __F_TRAP
  85. + #pragma inline d0=_lfsssss((short),(short),(short),(short),(short),(short))    __F_TRAP
  86. + #pragma inline _vfppllll((short),,,,,)    __F_TRAP
  87. + #else /* !__LATTICE__ */
  88.   #ifndef trap_14_wwwwww
  89.   #if __GNUC__ > 1
  90.   #define trap_14_wwwwww(n,a,b,c,d,e)                    \
  91. ***************
  92. *** 171,176 ****
  93. --- 238,245 ----
  94.   })
  95.   #endif
  96.   
  97. + #endif /* __LATTICE__ */
  98.   /*
  99.    * Video
  100.    */
  101. ***************
  102. *** 200,205 ****
  103. --- 269,289 ----
  104.   #define    VID_HSYNC    4
  105.   
  106.   #undef Setscreen
  107. + #ifdef __LATTICE__
  108. + #define Setscreen(a, b, c, d) _sfppss(5, a, b, c, d)
  109. + #define Vsetmode(a) _sfs(88, a)
  110. + #define Montype() _sfv(89)
  111. + #define VsetSync(a) _vfs(90)
  112. + #define VgetSize(a) _lfs(91)
  113. + #define VsetRGB(a, b, c) _vfssR(93, a, b, c)
  114. + #define VgetRGB(a, b, c) _vfssr(94, a, b, c)
  115. + #define VsetMask(a, b) _vfss(150, a, b)
  116. + #else /* !__LATTICE__ */
  117.   #define Setscreen(lscrn,pscrn,rez,mode)                    \
  118.       (short)trap_14_wllww((short)5,(long)(lscrn),(long)(pscrn),    \
  119.           (short)(rez),(short)(mode))
  120. ***************
  121. *** 218,224 ****
  122.       (void)trap_14_wwwl((short)94,(short)(index),(short)(count),    \
  123.           (long *)(array))
  124.   #define VsetMask(andmask,ormask)                    \
  125. !     (void)trap_14_www((short)150,(short)(andmask),(short)(ormask))
  126.   
  127.   /*
  128.    * Sound
  129. --- 302,310 ----
  130.       (void)trap_14_wwwl((short)94,(short)(index),(short)(count),    \
  131.           (long *)(array))
  132.   #define VsetMask(andmask,ormask)                    \
  133. !     (short)trap_14_www((short)150,(short)(andmask),(short)(ormask))
  134. ! #endif /* __LATTICE__ */
  135.   
  136.   /*
  137.    * Sound
  138. ***************
  139. *** 375,380 ****
  140. --- 461,488 ----
  141.       long reserve2;
  142.   } SndBufPtr;
  143.   
  144. + #ifdef __LATTICE__
  145. + long _lfS(int, SndBufPtr *);
  146. + #pragma inline d0=_lfS((short),)    __F_TRAP
  147. + #define Locksnd() _lfv(128)
  148. + #define Unlocksnd() _lfv(129)
  149. + #define Soundcmd(a, b) _lfss(130, a, b)
  150. + #define Setbuffer(a, b, c) _lfspp(131, a, b, c)
  151. + #define Setmode(a) _lfs(132, a)
  152. + #define Settracks(a, b) _lfss(133, a, b)
  153. + #define Setmontracks(a) _lfs(134, a)
  154. + #define Setinterrupt(a, b) _lfss(135, a, b)
  155. + #define Buffoper(a) _lfs(136, a)
  156. + #define Dsptristate(a, b) _lfss(137, a, b)
  157. + #define Gpio(a, b) _lfss(138, a, b)
  158. + #define Devconnect(a, b, c, d, e) _lfsssss(139, a, b, c, d, e)
  159. + #define Sndstatus(a) _lfs(140, a)
  160. + #define Buffptr(a) _lfS(141, a)
  161. + #else /* !__LATTICE__ */
  162.   #define Locksnd()                            \
  163.       (long)trap_14_w((short)128)
  164.   #define Unlocksnd()                            \
  165. ***************
  166. *** 407,418 ****
  167.   #define Buffptr(ptr)                            \
  168.       (long)trap_14_wl((short)141,(long)(ptr))
  169.   
  170.   /*
  171.    * DSP functions
  172.    *
  173.    * Don't even *think* of trying to use these without the manual!
  174.    */
  175. !         
  176.   #define    Dsp_DoBlock(data_in,size_in,data_out,size_out)            \
  177.       (void)trap_14_wllll((short)96,(long)(data_in),(long)(size_in),    \
  178.           (long)(data_out),(long)(size_out))
  179. --- 515,565 ----
  180.   #define Buffptr(ptr)                            \
  181.       (long)trap_14_wl((short)141,(long)(ptr))
  182.   
  183. + #endif /* __LATTICE__ */
  184.   /*
  185.    * DSP functions
  186.    *
  187.    * Don't even *think* of trying to use these without the manual!
  188.    */
  189. ! #ifdef __LATTICE__
  190. ! #define Dsp_DoBlock(a, b, c, d) _vfplpl(96, a, b, c, d)
  191. ! #define Dsp_BlkHandShake(a, b, c, d) _vfplpl(97, a, b, c, d)
  192. ! #define Dsp_BlkUnpacked(a, b, c, d) _vfplpl(98, a, b, c, d)
  193. ! #define Dsp_InStream(a, b, c, d) _vfplll(99, a, b, c, d)
  194. ! #define Dsp_OutStream(a, b, c, d) _vfplll(100, a, b, c, d)
  195. ! #define Dsp_IOStream(a, b, c, d, e, f) _vfppllll(101, a, b, c, d, e, f)
  196. ! #define Dsp_RemoveInterrupt(a) _vfs(102, a)
  197. ! #define Dsp_GetWordSize() _sfv(103)
  198. ! #define Dsp_Lock() _sfv(104)
  199. ! #define Dsp_Unlock() _vfv(105)
  200. ! #define Dsp_Available(a, b) _vfll(106, a, b)
  201. ! #define Dsp_Reserve(a, b) _vfll(107, a, b)
  202. ! #define Dsp_LoadProg(a, b, c) _sflsp(108, a, b, c)
  203. ! #define Dsp_ExecProg(a, b, c) _vfpls(109, a, b, c)
  204. ! #define Dsp_ExecBoot(a, b, c) _vfpls(110, a, b, c)
  205. ! #define Dsp_LodToBinary(a, b) _vflp(111, a, b)
  206. ! #define Dsp_TriggerHC(a) _vfs(112, a)
  207. ! #define Dsp_RequestUniqueAbility() _sfv(113)
  208. ! #define Dsp_GetProgAbility() _sfv(114)
  209. ! #define Dsp_FlushSubroutines() _sfv(115)
  210. ! #define Dsp_LoadSubroutine(a, b, c) _sfpls(116, a, b, c)
  211. ! #define Dsp_InqSubrAbility(a) _sfs(117, a)
  212. ! #define Dsp_RunSubroutine(a) _sfs(118, a)
  213. ! #define Dsp_Hf0(a) _sfs(119, a)
  214. ! #define Dsp_Hf1(a) _sfs(120, a)
  215. ! #define Dsp_Hf2() _sfv(121)
  216. ! #define Dsp_Hf3() _sfv(122)
  217. ! #define Dsp_BlkWords(a, b, c, d) _vfplpl(123, a, b, c, d)
  218. ! #define Dsp_BlkBytes(a, b, c, d) _vfplpl(124, a, b, c, d)
  219. ! #define Dsp_Hstat() _bfv(125)
  220. ! #define Dsp_SetVectors(a, b) _vfll(126, a, b)
  221. ! #define Dsp_MultBlocks(a, b, c, d) _vfllpp(127, a, b, c, d)
  222. ! #else /* !__LATTICE__ */
  223.   #define    Dsp_DoBlock(data_in,size_in,data_out,size_out)            \
  224.       (void)trap_14_wllll((short)96,(long)(data_in),(long)(size_in),    \
  225.           (long)(data_out),(long)(size_out))
  226. ***************
  227. *** 451,457 ****
  228.   #define    Dsp_Available(xmem,ymem)                    \
  229.       (void)trap_14_wll((short)106,(long)(xmem),(long)(ymem))
  230.   #define    Dsp_Reserve(xmem,ymem)                        \
  231. !     (void)trap_14_wll((short)107,(long)(xmem),(long)(ymem))
  232.   #define    Dsp_LoadProg(file,ability,buffer)                \
  233.       (short)trap_14_wlwl((short)108,(long)(file),(short)(ability),    \
  234.           (long)(buffer))
  235. --- 598,604 ----
  236.   #define    Dsp_Available(xmem,ymem)                    \
  237.       (void)trap_14_wll((short)106,(long)(xmem),(long)(ymem))
  238.   #define    Dsp_Reserve(xmem,ymem)                        \
  239. !     (short)trap_14_wll((short)107,(long)(xmem),(long)(ymem))
  240.   #define    Dsp_LoadProg(file,ability,buffer)                \
  241.       (short)trap_14_wlwl((short)108,(long)(file),(short)(ability),    \
  242.           (long)(buffer))
  243. ***************
  244. *** 482,486 ****
  245. --- 629,635 ----
  246.   #define    Dsp_Hf2()        (short)trap_14_w((short)121)
  247.   #define    Dsp_Hf3()        (short)trap_14_w((short)122)
  248.   #define    Dsp_HStat()        (char)trap_14_w((short)125)
  249. + #endif /* __LATTICE__ */
  250.   
  251.   #endif /* _FALCON_H */
  252. diff -cr /src/mntinc37/ioctl.h ./ioctl.h
  253. *** /src/mntinc37/ioctl.h    Wed Oct 20 11:08:38 1993
  254. --- ./ioctl.h    Wed Oct 13 05:20:56 1993
  255. ***************
  256. *** 39,44 ****
  257. --- 39,45 ----
  258.   #define TIOCSBRK    (('T'<< 8) | 21)
  259.   #define TIOCGFLAGS    (('T'<< 8) | 22)
  260.   #define TIOCSFLAGS    (('T'<< 8) | 23)
  261. + #define TIOCOUTQ    (('T'<< 8) | 24)
  262.   
  263.   /* faked by the library */
  264.   #define TIOCNOTTY    (('T'<<8) | 251)
  265. diff -cr /src/mntinc37/stdlib.h ./stdlib.h
  266. *** /src/mntinc37/stdlib.h    Wed Oct 20 11:09:10 1993
  267. --- ./stdlib.h    Tue Oct 12 18:37:16 1993
  268. ***************
  269. *** 111,116 ****
  270. --- 111,124 ----
  271.   __EXTERN size_t wcstombs __PROTO((char *, const wchar_t *, size_t));
  272.   __EXTERN int wctomb __PROTO((char *, wchar_t));
  273.   
  274. + __EXTERN wchar_t *wcscat __PROTO((wchar_t *, const wchar_t *));
  275. + __EXTERN int wcscmp __PROTO((const wchar_t *, const wchar_t *));
  276. + __EXTERN wchar_t *wcscpy __PROTO((wchar_t *, const wchar_t *));
  277. + __EXTERN size_t wcslen __PROTO((const wchar_t *));
  278. + __EXTERN wchar_t *wcsncat __PROTO((wchar_t *, const wchar_t *, size_t));
  279. + __EXTERN int wcsncmp __PROTO((const wchar_t *, const wchar_t *, size_t));
  280. + __EXTERN wchar_t *wcsncpy __PROTO((wchar_t *, const wchar_t *, size_t));
  281.   #ifdef __cplusplus
  282.   }
  283.   #endif
  284. diff -cr /src/mntinc37/termios.h ./termios.h
  285. *** /src/mntinc37/termios.h    Wed Oct 20 11:09:20 1993
  286. --- ./termios.h    Mon Oct 18 22:29:20 1993
  287. ***************
  288. *** 12,19 ****
  289.   #define VSTOP    8
  290.   #define VMIN    9
  291.   #define VTIME    10
  292.   
  293. ! #define NCCS    (VTIME + 1)
  294.   
  295.   typedef unsigned short tcflag_t;
  296.   typedef unsigned short speed_t;
  297. --- 12,21 ----
  298.   #define VSTOP    8
  299.   #define VMIN    9
  300.   #define VTIME    10
  301. + #define VLNEXT    11        /* <-- Not POSIX */
  302. + #define VWERASE    12        /* <-- Not POSIX */
  303.   
  304. ! #define NCCS    (VWERASE + 1)
  305.   
  306.   typedef unsigned short tcflag_t;
  307.   typedef unsigned short speed_t;
  308. diff -cr /src/mntinc37/types.h ./types.h
  309. *** /src/mntinc37/types.h    Wed Oct 20 11:09:22 1993
  310. --- ./types.h    Mon Oct 18 08:20:10 1993
  311. ***************
  312. *** 38,43 ****
  313. --- 38,51 ----
  314.   #define minor(dev)    ((dev) & 0x00ff)
  315.   #define makedev(x,y)    ((dev_t) ((((x) & 0xff) << 8) | ((y) & 0xff)))
  316.   
  317. + typedef unsigned long fd_set;
  318. + #define FD_ZERO(set)        (*(set) = 0L)
  319. + #define FD_CLR(fd, set)        (*(set) &= ~(1L << (fd)))
  320. + #define FD_SET(fd, set)        (*(set) |= (1L << (fd)))
  321. + #define FD_ISSET(fd, set)    (*(set) & (1L << (fd)))
  322. + #define FD_SETSIZE        32
  323.   __EXTERN int truncate    __PROTO((const char *_filename, off_t length));
  324.   __EXTERN int ftruncate    __PROTO((int fd, off_t length));
  325.   
  326. diff -cr /src/mntinc37/wait.h ./wait.h
  327. *** /src/mntinc37/wait.h    Wed Oct 20 11:09:26 1993
  328. --- ./wait.h    Wed Oct 13 07:38:28 1993
  329. ***************
  330. *** 37,50 ****
  331.       int *__wi;
  332.       union wait *__wu;
  333.   };
  334.   
  335.   /* Allow W* to get parameter in POSIX-Style (int) or BSD-Style (union wait)*/
  336.   #ifdef __GNUC__
  337. ! #define __W(x)  ({union{typeof(x) __in; union wait __out;}__wu; \
  338.           __wu.__in=(x); __wu.__out; })
  339.   #define __WP    union __waitp        
  340.   #else        
  341. ! #define __W(x)        (*(union wait *) &(x))
  342.   #define __WP    int *
  343.   #endif
  344.   
  345. --- 37,51 ----
  346.       int *__wi;
  347.       union wait *__wu;
  348.   };
  349. + typedef union wait __union_wait_t;
  350.   
  351.   /* Allow W* to get parameter in POSIX-Style (int) or BSD-Style (union wait)*/
  352.   #ifdef __GNUC__
  353. ! #define __W(x)  ({union{typeof(x) __in; __union_wait_t __out;}__wu; \
  354.           __wu.__in=(x); __wu.__out; })
  355.   #define __WP    union __waitp        
  356.   #else        
  357. ! #define __W(x)        (*(__union_wait_t *) &(x))
  358.   #define __WP    int *
  359.   #endif
  360.   
  361. ***************
  362. *** 62,68 ****
  363.   #define WSTOPPED __WSTOPPED
  364.   #endif
  365.   
  366. ! #define WIFSIGNALED(x)    (__W(x)._w.termsig != 0)
  367.   #define WIFSTOPPED(x)    (__W(x)._w.termsig == __WSTOPPED)
  368.   #define WIFEXITED(x)    (__W(x)._w.termsig == 0)
  369.   #define WIFCOREDUMPED(x) (__W(x)._w.coredump != 0)
  370. --- 63,69 ----
  371.   #define WSTOPPED __WSTOPPED
  372.   #endif
  373.   
  374. ! #define WIFSIGNALED(x)    (__W(x)._w.termsig != __WSTOPPED && __W(x)._w.termsig != 0)
  375.   #define WIFSTOPPED(x)    (__W(x)._w.termsig == __WSTOPPED)
  376.   #define WIFEXITED(x)    (__W(x)._w.termsig == 0)
  377.   #define WIFCOREDUMPED(x) (__W(x)._w.coredump != 0)
  378.